package com.ycfmedical.bed.ui.fragment;

import android.support.v4.app.Fragment;

import com.ycfmedical.bed.R;
import com.ycfmedical.bed.base.BaseFragmentList;
import com.ycfmedical.bed.utils.ResourceUtil;

import java.util.List;

/**
 * Created by yf on 2017-04-05.
 */

public class HealthNewsFragment extends BaseFragmentList {
    @Override
    protected void addFragmentList(List<Fragment> fragmentList) {
        fragmentList.add(HealthFoodFragment.newInstance());
        fragmentList.add(HealthRegimenFragment.newInstance());
        fragmentList.add(HealthChildFragment.newInstance());
    }

    @Override
    protected String[] addTabTitle(String[] titles) {
        return new String[]{ResourceUtil.getContext().getString(R.string.health_tab_food),
                ResourceUtil.getContext().getString(R.string.health_tab_regimen),
                ResourceUtil.getContext().getString(R.string.health_tab_child)};
    }
}
